<?php

use Hyperf\Database\Schema\Schema;
use Hyperf\Database\Schema\Blueprint;
use Hyperf\Database\Migrations\Migration;

class CreateUsersProfileTable extends Migration
{
    /**
     * Run the migrations.
     */
    public function up(): void
    {
        Schema::table('user_profile', function (Blueprint $table) {
            $table->double('coin_setting', 5, 1)->default(0.0)->comment('设置语音金币消耗')->after('is_recommend');
            $table->string('skills', 100)->default('')->comment('个人技能')->after('is_recommend');
            $table->integer('rich_value')->default(0)->comment('财富值')->after('coin_setting');
            $table->integer('charm_value')->default(0)->comment('魅力值')->after('coin_setting');
        });
    }

    /**
     * Reverse the migrations.
     */
    public function down(): void
    {
        Schema::table('user_profile', function (Blueprint $table) {
            //
        });
    }
}
